package com.itbac.loadbalance;

import org.springframework.cloud.client.ServiceInstance;

import java.util.List;

/**
 * 手写负载均衡
 * @author: BacHe
 * @email: 1218585258@qq.com
 * @Date: 2020/9/6 22:09
 */
public interface LoadBalancer {

    //从服务地址列表中取一个地址
    ServiceInstance getSingleAddress(List<ServiceInstance> serviceInstances);
}
